package com.sky.service;

import com.sky.dto.*;
import com.sky.result.PageResult;
import com.sky.vo.*;

public interface OrderService {
    /**
     * 历史订单查询
     * @param ordersPageQueryDTO
     * @return
     */
   PageResult historyOrder(OrdersPageQueryDTO ordersPageQueryDTO);

    /**
     * 用户下单
     * @param ordersSubmitDTO
     * @return
     */
    OrderSubmitVO submitOrder(OrdersSubmitDTO ordersSubmitDTO);

    /**
     * 订单支付
     * @param ordersPaymentDTO
     * @return
     */
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);

    OrderVO detailForId(Long id);

    void userCancel(Long id) throws Exception;//取消订单

    void repetition(Long id);//再来一次

 PageResult conditionSearch(OrdersPageQueryDTO ordersPageQueryDTO);//搜索订单

 OrderStatisticsVO statuses();//订单数量详情

 void confirm(OrdersConfirmDTO ordersConfirmDTO);//商家接单

 void rejection(OrdersRejectionDTO ordersRejectionDTO)throws Exception;//拒单

 void cancel(OrdersCancelDTO ordersCancelDTO) throws Exception;//商家取消订单

 void delivery(Long id);//派送订单

 void complete(Long id);//完成订单

 void reminderById(Long id);//催单
}
